<template>
  <view class="conference-room">
    <view
      class="title"
      @click="addConferenceRoom"
      >添加会议室</view
    >
  </view>
</template>

<script setup lang="ts">
import Taro from "@tarojs/taro";
import { getSystemRoomList } from "@/api/index";
import { onMounted, ref } from "vue";
const roomList = ref([]);

onMounted(() => {
  handleMeetingRoomList();
});
// 获取会议室列表
const handleMeetingRoomList = async () => {
  await getSystemRoomList().then(res => {
   roomList.value = res.rows;
   console.log(roomList,'roomList');
   
  });
};
const addConferenceRoom = () => {
  Taro.navigateTo({
    url: "/packageB/pages/conferenceRoom/addConferenceRoom/index",
  });
};
</script>

<style lang="less">
@import "./index.less";
// @import url("../../../assets/css/index.css");
@import "@/assets/css/index.less";
</style>
